package com.lznb.cloud.service;

import com.lznb.cloud.entity.NewsCategory;
import com.lznb.cloud.utils.JsonResultExt;

import java.util.List;
import java.util.Map;

/**
 * 栏目
 * 
 * @author mzy
 * @email 1992lcg@163.com
 * @date ${datetime}
 */
public interface NewsCategoryService {
	

    /**
    * 根据主键查询
    * @param categoryId
    * @return
    */
		NewsCategory getNewsCategory(String categoryId);

    /**
     * 保存
     */
    JsonResultExt save(NewsCategory newsCategory);

    /**
     * 修改
     */
    JsonResultExt update(NewsCategory newsCategory);

    /**
     * 删除
     */
    JsonResultExt delete(String categoryId);


    /**
     * 分页查询
     * @param pageIndex
     * @param size
     * @return
     */
    Map findByPage(Integer pageIndex, Integer size, NewsCategory newsCategory, Map<String, String> condition);


    List<NewsCategory> findAll();
}
